<?php 
namespace app\common\validate;

use think\Validate;

class Menus extends Validate
{
	protected $rule = [
			'menu_name|菜单名称' => ['require','max' => 5],
			'url|菜单链接' => 'require',
			'icon|菜单图标' => 'require',
	];
	protected $message = [
			'menu_name.max' => '菜单名称不超过5个字符'
	];
	protected $scene = [
			'add'=>['menu_name','url','icon']
	];
	
}